﻿using Authentication.Model.Model;
using Common.Contract.Authentication.Record;
using Common.Contract.Paging;
using Common.Contract.SystemConfig.Record;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Authentication.Model.Interface
{
    public interface ICloseDaoProvider
    {
        List<CloseDaoRequest> RetrieveListCloseDaoRequest(out int totalRecord, UserRecord currentUser, FilterRecord textSearch = null, int pagesize = 0, int pageindex = 0, SortRecord sortRecord = null);
        bool SaveCloseDaoRequest(out List<string> listDaoExist, List<CloseDaoRequest> userQuestion);
        CloseDaoRequest RetrieveRequestByRequestId(int id, UserRecord currentUser);
        bool UpdateStatusCloseDaoRequest(CloseDaoRequest checkUser);

        bool UpdateStatusListCloseDaoRequest(int[] listId, int status);

        bool UpdateOfferLetter(CloseDaoRequest checkUser);
    }
}
